using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.Sys
{
    /// <summary>
    /// 功能
    /// </summary>
    [SugarTable("sys_fun")]
    public class SysFun
    {

        /// <summary>
        /// 功能id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "fun_id")]
        public int FunId { get; set; }

        /// <summary>
        /// 功能父id
        /// </summary>
        [SugarColumn(ColumnName = "fun_pid")]
        public int FunPid { get; set; }

        /// <summary>
        /// 功能名称
        /// </summary>
        [SugarColumn(ColumnName = "fun_name")]
        public string FunName { get; set; }

        /// <summary>
        /// 功能说明
        /// </summary>
        [SugarColumn(ColumnName = "fun_remark")]
        public string FunRemark { get; set; }

        /// <summary>
        /// 功能类型 1分组 2菜单 3功能页面 4按钮
        /// </summary>
        [SugarColumn(ColumnName = "fun_type")]
        public int FunType { get; set; }

        /// <summary>
        /// 功能url
        /// </summary>
        [SugarColumn(ColumnName = "fun_url")]
        public string FunUrl { get; set; }

        /// <summary>
        /// 路由,配合前端填写
        /// </summary>
        [SugarColumn(ColumnName = "fun_router")]
        public string FunRouter { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnName = "fun_orderby")]
        public int FunOrderby { get; set; }


        [SugarColumn(IsIgnore = true)]
        public string FunPName { get; set; }
    }
}
